app.controller('userOrderlistDetail',["$rootScope","$scope","$state", "$stateParams","userInfoCacheFactory","confirmFactory","userInfoService","userOrderDetaillist", function($rootScope,$scope,$state,$stateParams,userInfoCacheFactory,confirmFactory,userInfoService,userOrderDetaillist) {
    $scope.myorderlist = {};
    var itmeId = $stateParams.id;
    userOrderDetaillist.orderInfo(function(data){
        angular.forEach(data.data,function(d,i){
        	if(itmeId==i){
        		$scope.orderDetail = data.data[i];
        	}
        })
    })
   
}]);
